<@_sysSiteList name=name  pageIndex=pageNum count=numPerPage>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>名称:</label>
					<input type="text" size="20" name="name" value="${name!}" />
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li>
						<button type="submit" class="buttonActive">搜索</button>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a href="sysSite/add.html" target="navTab" rel="sysSite/add"><i class="icon-plus-sign-alt icon-large"></i> 添加站点</a></li>
			<li><a href="sysSite/add.html?id={sid}" target="navTab" rel="sysSite/edit"><i class="icon-edit icon-large"></i> 修改站点</a></li>
			<li><a href="sysSite/delete.do?id={sid}" title="确定要删除该条记录吗?" target="ajaxTodo"><i class="icon-trash icon-large"></i> 删除</a></li>
		</ul>
	</div>
	<table class="list" width="100%" layoutH="92">
		<thead>
			<tr>
				<th width="30">ID</th>
				<th>名称</th>
				<th>动态站点地址</th>
				<th>启用静态化</th>
				<th>静态站点地址</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td>${a.id}</td>
				<td>${a.name!} <#if site.id=a.id>[当前站点]</#if></td>
				<td>${a.dynamicPath!}</td>
				<td>${a.useStatic?then('是','否')} ${a.useSsi?then('[已启用服务器端包含]','')}</td>
				<td>${a.sitePath!}</td>
				<td>
					<a href="sysDomain/add.html?siteId=${a.id!}" target="navTab" rel="sysDomain/add">添加域名</a>
					<a href="sysDomain/list.html?siteId=${a.id!}" target="navTab" rel="sysDomain/list">域名列表</a>
					<a href="sysSite/config.html?siteId=${a.id!}" target="dialog" rel="config_${a.id!}">配置模板</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</div>
</@_sysSiteList>